package com.example.xianji.activity;

import android.os.Bundle;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.xianji.R;

public class Main_Liuyan_DetailActivity extends Activity {
    /**
     * 我的留言详情
     */
    private TextView liuyan_qiye_name, liuyan_content, liuyan_time;
    private RelativeLayout relative_my_liuyan_detail_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
        }
        setContentView(R.layout.activity_main__liuyan__detail);
        liuyan_qiye_name = (TextView) findViewById(R.id.liuyan_qiye_name);
        liuyan_content = (TextView) findViewById(R.id.liuyan_content);
        relative_my_liuyan_detail_back = (RelativeLayout) findViewById(R.id.relative_my_liuyan_detail_back);
        liuyan_time = (TextView) findViewById(R.id.liuyan_time);
        liuyan_time.setText(getIntent().getStringExtra("liuyan_qiye_time"));
        liuyan_qiye_name.setText(getIntent().getStringExtra("liuyan_qiye_name") + ": ");
        liuyan_content.setText("留言内容:  " + getIntent().getStringExtra("liuyan_qiye_content"));
        relative_my_liuyan_detail_back.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Main_Liuyan_DetailActivity.this.finish();
            }
        });
    }
}
